package com.lhnstart.learn.bases.cycle;

import java.util.Scanner;

/**
 * @author lhn
 * @date 2022/10/26 10:54
 * @since 1.0.0
 **/
public class Stars {

    public static void main(String[] args) {//0:48 A:65 a:97 :32
        int i = ' ';
        System.out.println(i);

    }

    private static void extracted1() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入需要打印的金字塔的层数：");
        int totalLevel = scanner.nextInt();
        for (int i = 0; i < totalLevel; i++) {
            for (int x = totalLevel; x > i; x--) {
                System.out.print(" ");
            }
            for (int j = 0; j <= i * 2; j++) {
                if (j == 0 || j == i) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println();
            System.out.println();
        }
    }

    private static void extracted() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入需要打印的金字塔的层数：");
        int totalLevel = scanner.nextInt();
        for (int i = 0; i < totalLevel; i++) {
            for (int x = totalLevel; x > i; x--) {
                System.out.print(" ");
            }
            for (int j = 0; j <= i * 2; j++) {

                    System.out.print("*");

            }
            System.out.println();
        }
    }

}